﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    public class WorldMapData
    {
        private int _MapID;
        public int MapID
        {
            get { return _MapID; }
            set { _MapID = value; }
        }

        public int StartMapID;
        public int StartMapX;
        public int StartMapY;

        public int InstanceID = -1;
        public string InstanceName
        {
            get 
            {
                if (InstanceID == 1)
                    return "Antares";
                else if (InstanceID == 2)
                    return "Betelgeuse";
                else if (InstanceID == 3)
                    return "Canopus";
                else if (InstanceID == 4)
                    return "Deneb";
                else
                    return "";
            }
        }

        private string _MapName;
        public string MapName
        {
            get { return _MapName; }
            set { _MapName = value; }
        }

        private string _MapDisplayName;
        public string MapDisplayName
        {
            get { return _MapDisplayName; }
            set { _MapDisplayName = value; }
        }

        public ServerSocketData serverSocketData;
        public string Server
        {
            get
            {
                if (serverSocketData == null)
                    return "Offline";

                return serverSocketData.server;
            }
        }
    }
}
